package com.vero.system.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vero.common.core.annotation.Excel;
import com.vero.common.core.web.domain.BaseEntity;

/**
 * 疫苗信息对象 vaccine
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class Vaccine extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 疫苗ID */
    private Long vaccineId;

    /** 疫苗名称 */
    @Excel(name = "疫苗名称")
    private String name;

    /** 疫苗类型 */
    @Excel(name = "疫苗类型")
    private String type;

    /** 生产批次 */
    @Excel(name = "生产批次")
    private String batchNumber;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 适应症 */
    @Excel(name = "适应症")
    private String indications;

    /** 存放地点 */
    @Excel(name = "存放地点")
    private String location;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    public void setVaccineId(Long vaccineId) 
    {
        this.vaccineId = vaccineId;
    }

    public Long getVaccineId() 
    {
        return vaccineId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }

    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }

    public void setIndications(String indications) 
    {
        this.indications = indications;
    }

    public String getIndications() 
    {
        return indications;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vaccineId", getVaccineId())
            .append("name", getName())
            .append("type", getType())
            .append("batchNumber", getBatchNumber())
            .append("expirationDate", getExpirationDate())
            .append("indications", getIndications())
            .append("location", getLocation())
            .append("quantity", getQuantity())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
